export const menuRoutes = [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/Home.vue'),
      meta: {
        title: '首页',
        icon: 'el-icon-home'
      }
    },
    {
      path: '/components',
      name: 'components',
      component: { render: h => h('router-view') },
      meta: {
        title: '组件',
        icon: 'el-icon-menu'
      },
      children: [
        {
          path: 'example-component',
          name: 'example-component',
          component: () => import('../views/ComponentDoc.vue'),
          meta: {
            title: '示例组件',
            componentName: 'example-component'
          }
        }
        // 新组件路由会在这里自动添加
      ]
    }
  ];